package com.ruoyi.module.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.module.mapper.UserSettingsMapper;
import com.ruoyi.module.domain.UserSettings;
import com.ruoyi.module.service.IUserSettingsService;

/**
 * 用户设置Service业务层处理
 * 
 * @author ruoyi
 */
@Service
public class UserSettingsServiceImpl implements IUserSettingsService 
{
    @Autowired
    private UserSettingsMapper userSettingsMapper;

    /**
     * 根据用户ID查询用户设置
     */
    @Override
    public UserSettings selectUserSettingsByUserId(Long userId)
    {
        return userSettingsMapper.selectUserSettingsByUserId(userId);
    }

    /**
     * 新增用户设置
     */
    @Override
    public int insertUserSettings(UserSettings userSettings)
    {
        return userSettingsMapper.insertUserSettings(userSettings);
    }

    /**
     * 修改用户设置
     */
    @Override
    public int updateUserSettings(UserSettings userSettings)
    {
        return userSettingsMapper.updateUserSettings(userSettings);
    }
}

